package com.jbinfo.qingcaowan.base.entity;

import java.util.Date;
/**
 * 
* @ClassName: CodeInfo 
* @Description: TODO 数据字段实体
* @author ZhangLei
* @date 2016年6月26日 上午10:17:23
 */
public class CodeInfo extends CodeInfoKey {
    /** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = 5516947863134621700L;

	private String codeTypeName;

    private String codeValues;

    private Integer codeOrder;

    private String remarks;

    private String validateFlag;

    private Date gmtCreate;

    private String createUser;

    private Date gmtModified;

    private String modifiedUser;

    public String getCodeTypeName() {
        return codeTypeName;
    }

    public void setCodeTypeName(String codeTypeName) {
        this.codeTypeName = codeTypeName == null ? null : codeTypeName.trim();
    }

    public String getCodeValues() {
        return codeValues;
    }

    public void setCodeValues(String codeValues) {
        this.codeValues = codeValues == null ? null : codeValues.trim();
    }

    public Integer getCodeOrder() {
        return codeOrder;
    }

    public void setCodeOrder(Integer codeOrder) {
        this.codeOrder = codeOrder;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public String getValidateFlag() {
        return validateFlag;
    }

    public void setValidateFlag(String validateFlag) {
        this.validateFlag = validateFlag == null ? null : validateFlag.trim();
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getModifiedUser() {
        return modifiedUser;
    }

    public void setModifiedUser(String modifiedUser) {
        this.modifiedUser = modifiedUser == null ? null : modifiedUser.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CodeInfo other = (CodeInfo) that;
        return (this.getCodeType() == null ? other.getCodeType() == null : this.getCodeType().equals(other.getCodeType()))
            && (this.getCodeKeys() == null ? other.getCodeKeys() == null : this.getCodeKeys().equals(other.getCodeKeys()))
            && (this.getCodeTypeName() == null ? other.getCodeTypeName() == null : this.getCodeTypeName().equals(other.getCodeTypeName()))
            && (this.getCodeValues() == null ? other.getCodeValues() == null : this.getCodeValues().equals(other.getCodeValues()))
            && (this.getCodeOrder() == null ? other.getCodeOrder() == null : this.getCodeOrder().equals(other.getCodeOrder()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()))
            && (this.getValidateFlag() == null ? other.getValidateFlag() == null : this.getValidateFlag().equals(other.getValidateFlag()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getModifiedUser() == null ? other.getModifiedUser() == null : this.getModifiedUser().equals(other.getModifiedUser()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCodeType() == null) ? 0 : getCodeType().hashCode());
        result = prime * result + ((getCodeKeys() == null) ? 0 : getCodeKeys().hashCode());
        result = prime * result + ((getCodeTypeName() == null) ? 0 : getCodeTypeName().hashCode());
        result = prime * result + ((getCodeValues() == null) ? 0 : getCodeValues().hashCode());
        result = prime * result + ((getCodeOrder() == null) ? 0 : getCodeOrder().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        result = prime * result + ((getValidateFlag() == null) ? 0 : getValidateFlag().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getModifiedUser() == null) ? 0 : getModifiedUser().hashCode());
        return result;
    }
}